﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Coldairarrow.Entity.MEGA
{
    /// <summary>
    /// 员工表
    /// </summary>
    [Table("MEGA_Worker")]
    public class MEGA_Worker
    {

        /// <summary>
        /// 乐观锁
        /// </summary>
        [Key, Column(Order = 1)]
        public String Id { get; set; }

        /// <summary>
        /// 创建人
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除
        /// </summary>
        public Boolean? Deleted { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateTime { get; set; }

        /// <summary>
        /// 更新人
        /// </summary>
        public String Editor { get; set; }

        /// <summary>
        /// 更新时间
        /// </summary>
        public DateTime? EditTime { get; set; }

        /// <summary>
        /// 图片
        /// </summary>
        public String Image { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public String Name { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        public String Phone { get; set; }

        /// <summary>
        /// 工号 6位数字
        /// </summary>
        public String Code { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public String Sex { get; set; }

        /// <summary>
        /// 所属部门
        /// </summary>
        public String DepartId { get; set; }

        /// <summary>
        /// 部门名称
        /// </summary>
        public String DepartName { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public Int32? State { get; set; } = 0;

        /// <summary>
        /// 入职时间
        /// </summary>
        public String JoinTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public String Note { get; set; }

    }
}